package com.xy.dao;

import com.xy.model.UserAndRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserRoleDao {

    /**
     *
     * @param userAndRole
     * @return
     */
    int addUserRole(@Param("userAndRole") UserAndRole userAndRole);

    /**
     *
     * @param userId
     * @param roleId
     * @return
     */
    int delUserRole(@Param("userId") Integer userId,@Param("roleId") Integer roleId);
}
